package com.tz.yiqingapp.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserBaseInfo {
    long id;

    private String name;
    private String password;
    private String idcard;
    private String realname;
    private String citys;
    private String work;
    int status;
    int age;
    Boolean gender;
    Boolean checked;
    Boolean infoed;

    UserHealthReport userHealthReport;
    UserHealth userHealth;
    YimiaoOrderInfo yimiaoOrderInfo;
    public UserBaseInfo(User user){
        this.name = user.getName();
        this.id = user.getId();
        this.age = user.getAge();
        this.password = user.getPassword();
        this.idcard = user.getIdcard();
        this.realname = user.getRealname();
        this.citys = user.getCitys();
        this.work = user.getWork();
        this.status = user.getStatus();
        this.gender = user.getGender();
        this.infoed = user.getInfoed();
    }
}
